package cn.hwadee.muying.entity;

import java.util.Date;

import cn.hwadee.muying.enums.Status;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import cn.hwadee.muying.commons.base.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 接待情况
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
public class Reception extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 机构id
     */
    @TableField("org_id")

    private Long orgId;

    /**
     * 客服id
     */
    @TableField("custom_id")
        
    private Long customId;
    /**
     * 客服姓名
     */
        
    private String name;
    /**
     * 联系方式
     */
        
    private String telephone;
    /**
     * 客户住址
     */
        
    private String address;
    /**
     * 所需需求
     */
        
    private String requirement;
    /**
     * 沟通内容
     */
    @TableField("communication_content")
        
    private String communicationContent;
    /**
     * 需要时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("require_time")
        
    private Date requireTime;
    /**
     * 跟进职员
     */
    @TableField("follower_id")
        
    private Long followerId;
    /**
     * 跟进进度
     */
        
    private Status status;

    //对应跟进职员姓名
    @TableField(exist=false)
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getOrgId() { return orgId; }

    public void setOrgId(Long orgId) { this.orgId = orgId; }

    public Long getCustomId() {
        return customId;
    }

    public void setCustomId(Long customId) {
        this.customId = customId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRequirement() {
        return requirement;
    }

    public void setRequirement(String requirement) {
        this.requirement = requirement;
    }

    public String getCommunicationContent() {
        return communicationContent;
    }

    public void setCommunicationContent(String communicationContent) {
        this.communicationContent = communicationContent;
    }

    public Date getRequireTime() {
        return requireTime;
    }

    public void setRequireTime(Date requireTime) {
        this.requireTime = requireTime;
    }

    public Long getFollowerId() {
        return followerId;
    }

    public void setFollowerId(Long followerId) {
        this.followerId = followerId;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public static final String CUSTOM_ID = "custom_id";

    public static final String NAME = "name";

    public static final String TELEPHONE = "telephone";

    public static final String ADDRESS = "address";

    public static final String REQUIREMENT = "requirement";

    public static final String COMMUNICATION_CONTENT = "communication_content";

    public static final String REQUIRE_TIME = "require_time";

    public static final String FOLLOWER_ID = "follower_id";

    public static final String STATUS = "status";

    @Override
    public String toString() {
        return "Reception{" +
                ", customId=" + customId +
                ", name=" + name +
                ", telephone=" + telephone +
                ", address=" + address +
                ", requirement=" + requirement +
                ", communicationContent=" + communicationContent +
                ", requireTime=" + requireTime +
                ", followerId=" + followerId +
                ", status=" + status +
        "}";
    }
}
